package com.crocodileQ.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crocodileQ.common.PageResult;
import com.crocodileQ.common.R;
import com.crocodileQ.domain.VO.CommentVO;
import com.crocodileQ.domain.entity.Comment;


/**
 * (Comment)表服务接口
 *
 * @author makejava
 * @since 2024-01-02 20:56:53
 */
public interface CommentService extends IService<Comment> {

    /**
     * 分页查询文章评论
     *
     * @param commentType
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return
     */
    R<PageResult<CommentVO>> commentList(String commentType, Long articleId, Integer pageNum, Integer pageSize);

    /**
     * 发送评论
     * @param comment
     * @return
     */
    R addComment(Comment comment);

}

